home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / asmutil / asm_n_z.zip / SETUP2.DOC < prev    next >
Text File  |  1989-04-24  |  4KB  |  75 lines

  1.  
  2. SETUP2.COM
  3. Command
  4.  
  5. Jeff Prosise
  6. 1989 No. 10 (Utilities)
  7.  
  8.  
  9. Purpose:    Sends menu-selected or typed control codes to a printer  from
  10. within an application or from the DOS prompt.
  11.  
  12. Format:    SETUP2 [d:][path][filename] | [/C codes] | [/U]
  13.     
  14. Remarks:    Entered without the /C option, SETUP2 becomes a RAM-resident
  15. utility with a pop-up menu of user-configured printer control sequences
  16. specified in filename.  The default hotkey is Ctrl-Right Shift.  Esc closes the
  17. menu window and returns to any already-running application.   Entering SETUP2
  18. with the /U option uninstalls the utility if no subsequent TSR program has been
  19. loaded.
  20.  
  21.         Any ASCII text editor or word processor can be used to create
  22. filename, which contains the desired printer commands.  This file may be up to
  23. 64KB in overall size, and may contain any number of lines, each each of which
  24. must be ended by pressing Enter.  The first line identifies the printer or
  25. company (hit Enter alone to leave it blank), and may be up to 26 characters
  26. long.  Subsequent lines consist of up to 20 characters of identifying ASCII
  27. text, followed by a semicolon, followed by up to 255 bytes containing the 
  28. printer control sequence.  For example, the first four lines of a filename for
  29. an H-P LaserJet might be entered thus:
  30.  
  31.     H-P LASERJET
  32.     Spreadsheet;        27,"&l1o2e5.647c66F",27,"&k2S"
  33.     Reset Printer;      27,"E"
  34.     Form Feed;          12
  35.  
  36.     ASCII 27 is the (decimal) Escape character; it could alternatively be
  37. entered in hexadecimal notation as x1B or 0x1B, following the C-language style. 
  38. Numeric entries may be separated by commas (as shown), or by spaces or tabs. 
  39. Literal ASCII text must be enclosed either within double quotes (as shown) or
  40. single quotes.  White space to the right of the semicolon is ignored, and any
  41. line in filename beginning with a pound sign (#) is treated as a comment line
  42. and will not appear in the SETUP2 window.
  43.  
  44.     In the example just cited, when the SETUP2 menu is popped up with Ctrl-
  45. ight Shift, the words "Spreadsheet," "Reset Printer," and "Form Feed" will
  46. appear next to lines identified as F1, F2, and F3.  The associated printer
  47. control codes do not appear in the on-screen menu, but are sent to the printer
  48. either by pressing the indicated function key or by moving the menu highlight
  49. bar to the appropriate line with the Up- and Down-Arrow keys and pressing Enter. 
  50. The PgDn and PgUp keys bring lines in filename beyond the first "page" (ten
  51. lines) into the menu window.
  52.  
  53.     Below F10 in the SETUP2 menu is a blank line that may be used to send
  54. printer control sequences not contained in filename.  This line is accessed by
  55. pressing the forward slash (/), typing in the actual control codes (using the
  56. format conventions previously discussed), and pressing Enter.  In this case, the
  57. actual printer codes are shown on the screen; the entry line scrolls
  58. horizontally to accommodate sequences of more than 26 characters.
  59.  
  60.     Entering SETUP2 with the /C option enables sending printer control codes
  61. from the DOS command line without making the utility RAM-resident.  This is
  62. useful both for testing and for batch file operations.  The codes are again
  63. entered with the numeric and quotemark conventions previously indicated.  Note
  64. that each line must end with an ASCII 13,10 (carriage return/line feed)
  65. sequence.
  66.  
  67.     By default, SETUP2 uses LPT1.  Users familiar with DEBUG.COM can change
  68. the entry at offset 018A (normally 0) to 1 (for LPT2) or to 2 (for LPT3). 
  69. Similarly, the default Ctrl-Right Shift hotkey can be changed to another
  70. shifting key combination by changing the entry at offset 01B3 (normally 5).  A
  71. hex value of C in this location would change the hotkey to Ctrl-Alt, for
  72. example.  A complete table of shift-mask values is printed in the original
  73. article.
  74.  
  75. «MDNM»